package com.example.springboot.service;

import com.example.springboot.pojo.PageBean;
import com.example.springboot.pojo.User;
import com.example.springboot.pojo.Worker;

import java.sql.Time;

public interface WorkerService {

    Worker findByWorkerId(String workerId);

    PageBean<Worker> getAllWorker(Integer pageNum,Integer pageSize);

    void addWorker(String workerId, String name, String password, String id, String phoneNumber, String department,String email);

    void updateWorker(String workerId, String name, String id, String phoneNumber, String department,String email);

    void deleteWorker(String workerId);

    Worker[] findRepairman();

    void updatePassword(String email, String password);

    Worker findByEmail(String email);
}
